﻿using HelperFromTheSkeleton.Model.DomainModels;
using System.ComponentModel.DataAnnotations;

namespace Authority.Doamin
{
    /// <summary>
    /// 子系统
    /// </summary>
    public class Subsystem : BaseDomain
    {
        /// <summary>
        /// 子系统姓名
        /// </summary>
        [Required, MaxLength(100)]
        public string Name { get; set; } = string.Empty;

        /// <summary>
        /// 编号
        /// </summary>
        [Required, MaxLength(100)]
        public string Code { get; set; } = string.Empty;

        /// <summary>
        /// 系统图标ID
        /// </summary>
        public Guid? SystemIconID { get; set; }

        /// <summary>
        /// 地址
        /// </summary>
        public string? Address { get; set; }
    }
}